@if (transform) {
  <div [ngStyle]="styles" #outerRef (onResize)="onResize()">
    <div #innerRef [ngStyle]="transformInnerStyles" >
      <div [style]="style" [className]="className">
        <ng-container *ngTemplateOutlet="tempOutlet" ></ng-container>
      </div>
    </div>
  </div>
} @else {
  <div [ngStyle]="styles" [className]="className" #outerRef>
    <ng-container *ngTemplateOutlet="tempOutlet" ></ng-container>
  </div>
}

<ng-template #tempOutlet>
  <ng-content></ng-content>
</ng-template>
